#ifndef GAMERULES_H_
#define GAMERULES_H_

#include <map>
#include <string>

class CGameRules
{

private:

	std::map< std::string, int > m_GameRules;

public:

	inline void SetGameRule( std::string k, int v )
	{

		m_GameRules[k] = v;

	}

	inline int GetGameRule( std::string k )
	{
		
		int val = 0;
		
		try
		{

			val = m_GameRules.at( k );
			
		} catch( std::exception & err )
		{
			
			val = 0;
			
		}
		
		return val;
	
	}

};

#endif
